#include <string>
int _height = 0;
int _width = 0;
void setValue (std::string name, int value) 
{
    if (name == "height")
    {
        _height = value;
    }
    if (name == "width")
    {
        _width = value;
    }
}

static const int ENGINEER = 0;
static const int SALESMAN = 1;
static const int MANAGER = 2;
class Employee 
{
};
class Engineer : public Employee
{};

class Salesman : public Employee
{};

class Manager : public Employee
{};
static Employee* create(int type) {
       switch (type) {
           case ENGINEER:
              return new Engineer();
           case SALESMAN:
              return new Salesman();
           case MANAGER:
              return new Manager();
           default:
              throw NULL;
       }
   }

